﻿using AntdUI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lima.ResumeSys.Models
{
    public class RewardPunish : NotifyProperty
    {

        private string rewId;
        private string perNo;
        private string rewTitle;
        private string rewRecord;
        private DateTime rewDate;
        private string creator;
        private DateTime createTime;
        private string updatedBy;
        private DateTime updateTime;
        private CellLink[] cellLinks;
        public CellLink[] CellLinks
        {
            get { return cellLinks; }
            set
            {
                if (cellLinks == value) return;
                cellLinks = value;
                OnPropertyChanged(nameof(CellLinks));
            }
        }

        /// <summary>
        /// 编号
        /// </summary>
        public string RewId
        {
            get { return rewId; }
            set
            {
                if (rewId == value) return;
                rewId = value;
                OnPropertyChanged(nameof(RewId));
            }
        }

        /// <summary>
        /// 人员编号
        /// </summary>
        public string PerNo
        {
            get { return perNo; }
            set
            {
                if (perNo == value) return;
                perNo = value;
                OnPropertyChanged(nameof(PerNo));
            }
        }

        /// <summary>
        /// 奖惩记录标题
        /// </summary>
        public string RewTitle
        {
            get { return rewTitle; }
            set
            {
                if (rewTitle == value) return;
                rewTitle = value;
                OnPropertyChanged(nameof(RewTitle));
            }
        }

        /// <summary>
        /// 奖惩记录
        /// </summary>
        public string RewRecord
        {
            get { return rewRecord; }
            set
            {
                if (rewRecord == value) return;
                rewRecord = value;
                OnPropertyChanged(nameof(RewRecord));
            }
        }

        /// <summary>
        /// 奖惩时间
        /// </summary>
        public DateTime RewDate
        {
            get { return rewDate; }
            set
            {
                if (rewDate == value) return;
                rewDate = value;
                OnPropertyChanged(nameof(RewDate));
            }
        }
        public string RewDateView { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creator
        {
            get { return creator; }
            set
            {
                if (creator == value) return;
                creator = value;
                OnPropertyChanged(nameof(Creator));
            }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            get { return createTime; }
            set
            {
                if (createTime == value) return;
                createTime = value;
                OnPropertyChanged(nameof(CreateTime));
            }
        }

        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdatedBy
        {
            get { return updatedBy; }
            set
            {
                if (updatedBy == value) return;
                updatedBy = value;
                OnPropertyChanged(nameof(UpdatedBy));
            }
        }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime
        {
            get { return updateTime; }
            set
            {
                if (updateTime == value) return;
                updateTime = value;
                OnPropertyChanged(nameof(UpdateTime));
            }
        }

        public class QueryRewardPunishModel
        {
            public string PerNo { get; set; }

            public string RewTitle { get; set; }

        }
    }
}
